﻿namespace FPPrinter.Models.Printers
{
    public class Printer : IPrinter
    {
        private const string Emkey = "EmptyPrinter";

        public string Name { get; private set; }
        public bool DoubleSided { get; private set; }

        public bool IsEmpty
        {
            get => Emkey == Name;
        }

        public Printer(string printQueueName, bool isDoublesided)
        {
            Name = printQueueName;
            DoubleSided = isDoublesided;
        }

        private static Printer _empty = new Printer(Emkey, true);

        public static Printer OfEmpty()
        {
            return _empty;
        }
    }
}